package epam.marchenko.library.services;

import java.util.List;

import epam.marchenko.library.domain.User;

public interface UserService {
	List<User> findAllUsers();
	List<User> findPart(int pageNum, int perPage);
	List<User> searchUser(String searchedName);
	Long recordCount();
	User findUserById(int id);
	User findUserByLogin(String login);
	boolean isAvailableLogin(String login);
	boolean userCanGetBook(User user);
	void addUser(User user);
}
